What is kingdom of livonia?

The Kingdom of Livonia was a short-lived state that existed from 1570 to 1578. It was situated in the eastern part of modern-day Latvia and the western part of modern-day Estonia. The kingdom was established during the Livonian War, a conflict between the Russian Empire, Denmark, and Sweden, over the control of the territory. The kingdom was created as a joint project between the Polish-Lithuanian Commonwealth and the Kingdom of Sweden. The Poles and Swedes agreed to divide Livonia between themselves, with the Poles taking the southern part and the Swedes taking the northern part. The capital of the kingdom was the city of Riga. The kingdom was short-lived, and in 1578, the Polish-Lithuanian Commonwealth decided to give up their stake in Livonia, and the Swedes were left to fight the Russians alone. By the end of the 16th century, Livonia was firmly under Swedish control.